
package Navigation;

class CoordinateTopologyObjectImpl implements ICoordinateTopObj{

    private double x;
    private double y;
    private ITopologyObject parent;

    public CoordinateTopologyObjectImpl(double x, double y) {
        this.x = x;
        this.y = y;
    }
    
    public CoordinateTopologyObjectImpl(double x, double y, ITopologyObject parent){
    	this(x, y);
    	this.parent = parent;
    }

    public String write() {
        String value = x + ", " + y;
        return value;
    }

    public double getX(){
        return this.x;
    }

    public double getY(){
        return this.y;
    }
    
    public ITopologyObject getParent(){
    	return this.parent;
    }
}
